<template>
          <header>
        <h2>vue云音乐</h2>
        <div class="search">
            <input type="text" placeholder="请输入歌手、歌曲等"
            v-model="search">
            <div class="iconsearch"></div>
        </div>
        <ul>
            <!-- <li><a href="">首页</a> </li>
            <li><a href="">发现音乐</a></li>
         
            <li><a href="">音乐人</a></li>
            <li><a href="">我的</a></li> -->


             <li><router-link to="/">首页</router-link> </li>
            <li><router-link to="/SearchSongs">发现音乐</router-link></li>
         
            <li><router-link to="/">音乐人</router-link></li>
            <li><router-link to="/">我的</router-link></li>

        </ul>
          <router-view/>
    </header>
</template>

<script>
// import  SearchSongs from "./SearchSongs"
export default {
    name:"MyHeader",
    // components:{SearchSongs},
  data() {
          return {
          search:[],
        }
  },
 

}
</script>

<style>
 header {
            width: 100%;
            height: 80px;
            background-color: rgba(0, 0, 0, .3);
            text-align: center;
            line-height: 80px;
            padding-left: 100px;
            padding-right: 100px;
        }
        
        header h2 {
            font-family: '华文彩云';
            color: rgb(0, 255, 64);
            font-size: 35px;
            float: left;
            text-shadow: 0px 0px 0px #e2d83c, 1px 1px 0px #e2d83c, 2px 2px 0px #e2d83c, 3px 3px 0px #e2d83c, 4px 4px 0px #e2d83c, 5px 5px 0px #e2d83c;
        }
        
        header .search {
            width: 300px;
            height: 50px;
            float: left;
            position: relative;
            top: 15px;
            margin-left: 100px;
            border-radius: 25px;
            overflow: hidden;
         
        }
        
        header .search input {
            position: absolute;
            width: 300px;
            height: 50px;
            top: 0;
            left: 0;
            outline: none;
            padding-left: 20px;
            font-size: 20px;
        }
        
        header .search .iconsearch { 
            font-family: 'icomoon';
            font-size:20px;
            position: absolute;
            top:5px;
            right: 30px;
            line-height: 50px;
        }
        
        header ul {
            float: left;
            padding-left: 100px;
        }
        
        header ul li {
            font-size: 20px;
            float: left;
            margin-right: 100px;
        }
</style>